﻿@using Gurux.DLMS.AMI.Module

@implements IAmiComponent

<div class="alert alert-secondary mt-4" role="alert">
    @if (string.IsNullOrEmpty(Title))
    {
        <strong>@Title</strong>
    }
    <span class="text-nowrap">
        @Text
    </span>
</div>

@code {
    /// <inheritdoc />
    public string Name
    {
        get
        {
            return "Survey prompt";
        }
    }


    /// <inheritdoc />
    public Type? ConfigurationUI
    {
        get
        {
            return null;
        }
    }

    /// <inheritdoc />
    public string? Icon
    {
        get
        {
            return "";
        }
    }

    /// <summary>
    /// Survey prompt title.
    /// </summary>
    [Parameter]
    public string? Title { get; set; }

    /// <summary>
    /// Survey prompt Text.
    /// </summary>
    [Parameter]
    public string? Text { get; set; }
}
